package com.sxpi.zixun.service.resourcecategory;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.zixun.bo.ResourceCategoryBo;
import com.sxpi.zixun.pojo.ResourceCategory;
import com.sxpi.zixun.service.BaseService;
import com.sxpi.zixun.vo.ResourceCategoryVo;

import java.util.List;

/**
 * @Author: 董伟豪
 * @Date: 2022/9/2 19:23
 */
public interface IResourceCategoryService extends IService<ResourceCategory>, BaseService {

    /**
     * 查询资源分类列表信息
     * @return
     */
    List<ResourceCategoryBo> findResourceCategoryList();

    /**
     * 查询资源分类列表信息并分页
     * @param resourcecategoryVo
     * @return
     */
    IPage<ResourceCategoryBo> findResourceCategoryPage(ResourceCategoryVo resourcecategoryVo);

    /**
     * 根据资源分类id查询明细信息
     * @param id
     * @return
     */
    ResourceCategoryBo getResourceCategoryById(Long id);

    /**
     * 保存和修改资源分类
     * @param resourcecategory
     * @return
     */
    ResourceCategoryBo saveUpdateResourceCategory(ResourceCategory resourcecategory);

    /**
     * 根据资源分类id删除资源分类
     * @param id
     * @return
     */
    int deleteResourceCategoryById(Long id);
}
